<extend name="public@base5"/>
<block name="head">
    <style>
        table label{color:#AAA}
    </style>
</block>
<block name="main">
    <div class="wrap js-check-wrap">
        <div>买家信息</div>
        <div>
            <label>昵称</label>:{$order.user_nickname}<br/>
            <label>ID</label>:{$order.user_id}<br/>
             <label>手机号</label>: {$order.mobile}<br/>
            <label>下单时间</label>: {:date('Y-m-d H:i:s',$order['create_time'])}<br/>
            <label>支付时间</label>:<notEmpty name="$order['pay_time']">{$order['pay_time']}<br/></notEmpty>
        </div>
    </div>
    <div class="wrap mt-2">
        <table class="table table-hover table-bordered margin-top-20" style="width: 900px;">
            <thead>
            <tr>
                <th width="50">编号</th>
                <th>商品名称</th>
                <if condition='$order.booth_type neq 1'>
                <th>规格</th>
                </if>
                <th>价格</th>
                <th width="160">数量</th>
                <th width="90">总价</th>
            </tr>
            </thead>
            <tbody>
        <foreach name="list" item="vo">
                <tr class="c_{$order.status}">
                    <td> {$vo.item_id}</td>
                    <td>
                        {$vo.item_name}
                    </td>
                       <if condition='$order.booth_type neq 1'>                 
                    <td>
                       {$vo.attr}
                    </td>
                     </if>
                    <td>
                     {$vo.cost/$vo.item_num}
                    </td>
                    <td>
                        {$vo.item_num}
                     </td>
                    <td>
                        {$vo.cost}
                    </td>
                </tr>
                </foreach>
            </tbody>
        </table>
    </div>
    <if condition='$order.booth_type neq 1'>
        <notEmpty name='addr'>
    <div class='wrap mt-2'>
        <label>收货地址 :  {$order.address}<br/>
        <label>收货人 :  {$addr.real_name}<br/>
        <label>电话 :  {$addr.phone_number}<br/>
        <label>物流编号: </label>{$order.logistics}
    </div>
        </notEmpty>
    </if>
</block>
